package libs;

import java.io.Serializable;

/**
 *
 * @author Ciaran Liedeman
 * @version 0.3
 */
public class Payload<T> implements Serializable{
    private Flag flag;
    private T data;
    private String source;
    private String destination;

    public Payload(Flag flag, T data, String source, String destination){
        this.flag = flag;
        this.data = data;
        this.source = source;
        this.destination = destination;
    }

    public Flag getFlag(){
        return flag;
    }

    public T getData(){
        return data;
    }

    public String getSource(){
        return source;
    }

    public String getDEstination(){
        return destination;
    }
}
